package 动态数组.栈.接口;

/**
 * 栈的抽象类，方法的定义
 * @param <E>
 */
public interface Stack<E> extends Iterable<E>{
    public int size();
    public boolean isEmpty();
    public void  push(E element);
    public E pop();
    public E peek();
    public void clear();
}